package org.lanyu.springainovel.chat.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.lanyu.springainovel.chat.entity.KnowledgeBase;

public interface KnowledgeBaseMapper extends BaseMapper<KnowledgeBase> {
    // 根据用户ID查询知识库列�?    List<KnowledgeBase> selectByUserId(Long userId);
    
    // 分页查询用户的知识库列表
    Page<KnowledgeBase> selectPageByUserId(Page<KnowledgeBase> page, Long userId);
}
